﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace Calculalouca
{
    public class Matriz
    {
        public float[,] valoresMatriz;
        public int nLines, nColumns;

        public Matriz(int nLines, int nColumns)
        {
            this.nLines = nLines;
            this.nColumns = nColumns;
            valoresMatriz = new float[nLines, nColumns];
        }

        public void setValues(int[] values)
        {
            int count = 0;

            for (int i = 0; i < nLines; i++)
            {
                for (int j = 0; j < nColumns; j++)
                {
                    valoresMatriz[i, j] = values[count];
                    count++;
                }
            }
        }
    }
}
